#ifndef _TURTLE_H_
#define _TURTLE_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "CGame.h"
#include "Object.h"
#include "Global.h"

#define TURTLE_VX	0.15
#define TURTLE_GRAVITY 0.01

class Turtle : public Object
{
public:

	bool check_turn;
	bool isGravity;
	float _vx;
	float _vy;
	float _xPre;
	float _yPre;
	Texture * _texture;
	int _timeStop;

public:
	Turtle(int id, float x, float y,int type, int state, int direction);
	~Turtle(void);
	void Render(int vpX, int vpY);
	void Update(list<Object *> *_list, float time);
	void TurnLeft();
	void TurnRight();
	void Move(list<Object*>* _list, float time);
	void changeState(int state);
	OBJECT_TYPE getObjectType();
};
#endif